package 多维数组;
/*扑克牌
案例：遍历扑克牌
遍历扑克牌，效果如图所示*/
public class Demo11 {
    public static void main(String[] args) {
        String [] hua={"黑桃","红桃","梅花","方片"};
        String [] number={"A","2","3","4","5","6","7","8","9","J","Q","K"};
        String[] pai=new String[hua.length*number.length];
        int k=0;
        for(int i=0;i<hua.length;i++){
            for(int j=0;j<number.length;j++){
                pai[k++]=hua[i]+number[j];
            }
        }
        for(int i=0;i<pai.length;i++){
            System.out.print(pai[i]+" ");
            if (i%13==12){
                System.out.println();
            }
        }
    }
}
